using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class LotConfiguration : EntityTypeConfiguration<Lot>
    {
        public LotConfiguration()
        {
            Property(g => g.LotID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
         
            Property(g => g.Modified).IsOptional();
           
            Property(g => g.Age).IsOptional();
            Property(g => g.BestBeforeBnd).IsOptional();
            Property(g => g.Code).IsOptional();
            Property(g => g.Lot_Date).IsOptional();
            Property(g => g.Depth).IsOptional();
            Property(g => g.Height).IsOptional();
            Property(g => g.Name).IsOptional();
            Property(g => g.UseNotBefore).IsOptional();
            Property(g => g.Volume).IsOptional();
            Property(g => g.Weight).IsOptional();
            Property(g => g.Width).IsOptional();
            Property(g => g.StockUnitID).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.ItemDataID).IsOptional();
        }
    }
}
